package me.zhengjie.domain;

import lombok.Data;

@Data
public class PageResult extends CommonResult {

	private long total;

	public PageResult() {

	}

	public PageResult(int code, String msg, Object data, long total) {
		super(code, msg, data);
		this.total = total;
	}


	public static PageResult ok(String msg, Object data, long total) {
		return new PageResult(1, msg, data, total);
	}

}
